//
// Created by 11510 on 2024/6/20.
//
#include <iostream>
#include <string>
#include <cstring>
using namespace std;

/**
 *
 * @tparam T
 * @tparam kBase 非参数类型
 * @param t1
 * @param t2
 * @return
 */
template<class T = int, int kBase = 10>
T multiply(T t1, T t2) {
    return t1 * t2 * kBase;
}


void test0(){
    /*cout << multiply(3, 4) << endl;*/
    /* 需要只能找模板参数的顺序来指定 */
    cout << multiply<int>(3, 4) << endl;
    cout << multiply<int, 100>(1.2, 1.2) << endl;
    cout << multiply(1.2, 1.2) << endl;



}

int main(){
    test0();

    return 0;
}